<?php 
session_start();
$page = "account";
include('checkLoggedIn.php');
include('get-user-info.php');

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<meta name="viewport" content="width=320, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>My Account</title>
<link href="html/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
	#tabmenu li {
	margin-left: 2px !important;
	margin-right: 2px !important;
}
#tabmenu a{
	padding: 2px 2px 0px !important;
}
</style>
</head>

<body>
<div id="body-wrapper">
<div id="header"><?php include('menu.php');?></div>
<div id="Content">
<div class="error-msg"><?php if(isset($err)) echo $err;?></div>
<form action="#" method="post">
<div class="error-msg"><?php  if(isset($err)) echo $err."<br>" ;?></div>
<fieldset title="Plan a Trip"><legend>Login Info</legend>
<div class="row"><span
	style="float: left; width: 75px; text-align: right;">Email Id:</span>
	<span class="address"><?php echo @$getdata['email_id'];?></span></div>
<div class="row"><span
	style="float: left; width: 75px; text-align: right;">Password:</span>
	<span class="address">********</span></div>
<div class="row" style="margin-top: 10px;"><input type="submit"
	value="Edit Login Info" /></div></form>
</fieldset>
<fieldset><legend>Personal Info</legend>
<?php if(isset($_SESSION['userdata']['updated'])):?>
<div class="error-msg">Personal Info Updated!</div>
<?php 
unset($_SESSION['userdata']['updated']);
endif;?>
<form action="edit-info.php" method ="post">
<div class="row"><span
	style="float: left; width: 75px; text-align: right;">Name:</span>
	<span class="address"><?php echo @$getdata['first_name']."&nbsp;". @$getdata['last_name'];?></span></div>
<div class="row"><span
	style="float: left; width: 75px; text-align: right;">Mobile:</span>
	<span class="address"><?php echo @$getdata['mobile'];?></span></div>
<div class="row" style="margin-top: 10px;">
<input type="submit"	value="Edit Personal Info" name ="edit"/></div></form>
	</fieldset>
</form>
<div class="clear"></div>
</div>
</div>

</body>
</html>
